package week5th;

public class tester {
    public static void main(String[] args) {
        ProductList pl = new ProductList();

        Product sheep = new Product("sheep羊🐏", 100, 8);

        pl.add(new Product("book书📕", 5));
        pl.add(new Product("pen笔🖊", 2));
        pl.add(sheep);
        pl.add(new Product("cola可乐🍺", 10));
        pl.add(new Product("ox牛🐂", 150, 8));

        System.out.println(pl);
        System.out.println(pl.find(sheep));
        pl.remove(sheep);
        System.out.println(pl);

        pl.selectionSort();
        System.out.println(pl);

    }
}
